//
//  NMPOFuncChooseCell.swift
//  NMPO
//
//  Created by PowerfullClean on 2023/10/31.
//

import UIKit

class NMPOFuncChooseCell: UICollectionViewCell {
    override init(frame: CGRect) {
        super.init(frame: frame)
        contentView.addSubview(nmpo_bottomView)
        contentView.addSubview(nmpo_decLabel)
        contentView.addSubview(nmpo_titleLabel)
        contentView.addSubview(nmpo_arrowView)
        nmpo_bottomView.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }
        nmpo_titleLabel.snp.makeConstraints { make in
            make.top.equalToSuperview().offset(16)
            make.left.equalToSuperview().offset(16)
        }
        nmpo_decLabel.snp.makeConstraints { make in
            make.bottom.equalToSuperview().offset(-16)
            make.left.equalToSuperview().offset(16)
        }
        nmpo_arrowView.snp.makeConstraints { make in
            make.size.equalTo(CGSize(width: 67, height: 34))
            make.centerY.equalToSuperview()
            make.right.equalToSuperview().offset(-14)
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    //MARK: - nmpo lazy
    lazy var nmpo_bottomView: UIImageView = {
        let nmpo_bottomView = UIImageView(image: UIImage(named: "nmpo_home_change"))
        return nmpo_bottomView
    }()
    lazy var nmpo_titleLabel: UILabel = {
        let nmpo_titleLabel = UILabel()
        nmpo_titleLabel.font = UIFont.systemFont(ofSize: 16)
        nmpo_titleLabel.textColor = NMPOCommon.nmpo_getHXColorValue(rgb: 0xFFFFFF)
        nmpo_titleLabel.text = "Choose VPN severs"
        return nmpo_titleLabel
    }()
    lazy var nmpo_decLabel: UILabel = {
        let nmpo_decLabel = UILabel()
        nmpo_decLabel.font = UIFont.systemFont(ofSize: 12)
        nmpo_decLabel.textColor = NMPOCommon.nmpo_getHXColorValue(rgb: 0x959595)
        nmpo_decLabel.text = "Multiple routes are optional"
        return nmpo_decLabel
    }()
    lazy var nmpo_arrowView: UIImageView = {
        let nmpo_arrowView = UIImageView(image: UIImage(named: "nmpo_func_arrow"))
        return nmpo_arrowView
    }()
}
